﻿@model DataAccess.DB.ThanhToan

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>
<script src="~/Scripts/CustomValidate.js" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>ThanhToan</legend>

        @Html.HiddenFor(model => model.ID)

        <div class="editor-label">
            @Html.LabelFor(model => model.ID_DVCC, "DVCC")
        </div>
        <div class="editor-field">
            @Html.DropDownList("ID_DVCC", String.Empty)
            @Html.ValidationMessageFor(model => model.ID_DVCC)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ID_KH, "KhachHang")
        </div>
        <div class="editor-field">
            @Html.DropDownList("ID_KH", String.Empty)
            @Html.ValidationMessageFor(model => model.ID_KH)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Price)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Price)
            @Html.ValidationMessageFor(model => model.Price)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Date)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Date)
            @Html.ValidationMessageFor(model => model.Date)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TypeOfPurchace)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TypeOfPurchace)
            @Html.ValidationMessageFor(model => model.TypeOfPurchace)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    <script type="text/javascript">
        $(':input').mouseover(function () {
            $(this).attr("title", $(this).val());
        });
    </script>
}
